package PVZ;

import javax.swing.*;

public class Zombie extends Senobject {
    protected int speed;
    Zombie(){
        super(166,144,2);
        speed += 10;
    }

    @Override
    public ImageIcon getImage() {
        return Images.Zombie;
    }
    public void step(){
        x-=speed;
    }

    public void loseLife(){
        life--;
    }
}
